// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import '../static/css/reset.css'
import '../static/css/vux-cover.less'
import FastClick from 'fastclick'
import Meta from 'vue-meta';
import store from './store';
import Cookies from 'js-cookie'
import fetch from '@/api/fetch'
import moment from 'moment'

Vue.config.productionTip = false

FastClick.attach(document.body);
Vue.use(Meta)


Vue.prototype.$cookies = Cookies;
Vue.prototype.$api = fetch;
Vue.prototype.$moment = moment;

import  { ToastPlugin,LoadingPlugin  } from 'vux'
Vue.use(ToastPlugin)
Vue.use(LoadingPlugin)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store: store,
  components: { App },
  template: '<App/>'
})
